<!--
 * @Author       : cxh
 * @Date         : 2021-12-23 21:41:27
 * @LastEditTime : 2021-12-23 21:43:38
 * @LastEditors  : cxh
 * @Description  : test-prop
 * @FilePath     : \vue_WorkSpace\day04\vue-prop.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.common.dev.js"></script>
</head>

<body>
    <blog-post post-title="hello!"></blog-post>
</body>
<script>
    Vue.component('blog-post', {
        // 在 JavaScript 中是 camelCase 的
        props: ['postTitle'],
        template: '<h3>{{ postTitle }}</h3>'
    })
</script>

</html>